home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmpC_109_Dispatcher < prev    next >
Encoding:
Text File  |  1992-04-08  |  3.2 KB  |  189 lines

  1. /* %filename% -- dispatcher for windows and for modeless dialogs */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. #include <Types.h>
  5. #include <Quickdraw.h>
  6. #include <Controls.h>
  7. #include <Dialogs.h>
  8. #include <Events.h>
  9. #include <Lists.h>
  10. #include <Menus.h>
  11. #include <TextEdit.h>
  12. %for each window gen include%
  13. %for each dialog gen includeModeless%
  14. #include "Globals.h"
  15. #include "Dispatcher.h"
  16.  
  17. %If lang = MPW%
  18.     #pragma segment Dispatcher 
  19.  
  20. %end if%
  21. /*----------*/
  22. void DoIdle (void)
  23. {
  24. } /*DoIdle*/
  25.  
  26. /*----------*/
  27. void OpenWindows    (Str255            fName,
  28.                      short            vRefNum,
  29.                      short            fRefNum)
  30. {
  31.  
  32.     %for each window gen open%
  33.  
  34. } /*OpenWindows*/
  35.  
  36. /*----------*/
  37. void CloseCurWindow (void)
  38. {
  39.     %if lang = AUX%
  40.         switch ((int) cur->windowKind) {
  41.     %else%
  42.         switch (cur->windowKind) {
  43.     %endif%
  44.         %for each window gen close%
  45.  
  46.     } /*switch*/
  47. } /*CloseCurWindow*/
  48.  
  49. /*----------*/
  50. void DoControl         (ControlHandle    whichControl, 
  51.                      short             whichPart, 
  52.                      Point             where)
  53. {
  54.     %if lang = AUX%
  55.         switch ((int) cur->windowKind) {
  56.     %else%
  57.         switch (cur->windowKind) {
  58.     %endif%
  59.         %for each window gen track%
  60.  
  61.     } /*switch*/
  62. } /*DoControl*/
  63.  
  64. /*----------*/
  65. void MouseInContent    (Point        where, 
  66.                      short        modifiers)
  67. {
  68.     %if lang = AUX%
  69.         switch ((int) cur->windowKind) {
  70.     %else%
  71.         switch (cur->windowKind) {
  72.     %endif%
  73.         %for each window gen mousein%
  74.  
  75.     } /*switch*/
  76. } /*MouseInContent*/
  77.  
  78. /*----------*/
  79. void TypeInWindow    (char    ch)
  80. {
  81.     %if lang = AUX%
  82.         switch ((int) cur->windowKind) {
  83.     %else%
  84.         switch (cur->windowKind) {
  85.     %endif%
  86.         %for each window gen typein%
  87.  
  88.     } /*switch*/
  89. } /*TypeInWindow*/
  90.  
  91. /*----------*/
  92. void UpdateContent (void)
  93. {
  94.     %if lang = AUX%
  95.         switch ((int) cur->windowKind) {
  96.     %else%
  97.         switch (cur->windowKind) {
  98.     %endif%
  99.         %for each window gen update%
  100.  
  101.     } /*switch*/
  102. } /*UpdateContent*/
  103.  
  104. /*----------*/
  105. void ActivateContent (Boolean    activate)
  106. {
  107.     %if lang = AUX%
  108.         switch ((int) cur->windowKind) {
  109.     %else%
  110.         switch (cur->windowKind) {
  111.     %endif%
  112.         %for each window gen activate%
  113.  
  114.     } /*switch*/
  115. } /*ActivateContent*/
  116.  
  117. /*----------*/
  118. void ResizeContent (void)
  119. {
  120.     %if lang = AUX%
  121.         switch ((int) cur->windowKind) {
  122.     %else%
  123.         switch (cur->windowKind) {
  124.     %endif%
  125.         %for each window gen resize%
  126.  
  127.     } /*switch*/
  128. } /*ResizeContent*/
  129.  
  130. /*----------*/
  131. pascal void ScrollWindow    (short        newValue, 
  132.                              short        oldValue)
  133. {
  134.     %if lang = AUX%
  135.         switch ((int) cur->windowKind) {
  136.     %else%
  137.         switch (cur->windowKind) {
  138.     %endif%
  139.         %for each window gen scroll%
  140.  
  141.     } /*switch*/
  142. } /*ScrollWindow*/
  143.  
  144. /*----------*/
  145. void InitModelessDialogs (void)
  146. {
  147.     %for each dialog gen init%
  148.  
  149. } /*InitModelessDialogs*/
  150.  
  151. /*----------*/
  152. void CloseModelessDialog (DialogPtr        whichDialog)
  153. {
  154. %if lang = MPW%
  155.     #pragma unused (whichDialog) 
  156.   
  157. %end if%
  158.     %for each dialog gen close%
  159.  
  160. } /*CloseModelessDialog*/
  161.  
  162. /*----------*/
  163. Boolean FilterModeless    (DialogPtr        whichDialog, 
  164.                          EventRecord    *event, 
  165.                          short            *itemHit)
  166. {
  167. %if lang = MPW%
  168.     #pragma unused (whichDialog, event, itemHit) 
  169.   
  170. %end if%
  171.     %for each dialog gen filter%
  172.  
  173.     return (false);
  174. } /*FilterModeless*/
  175.  
  176. /*----------*/
  177. void DoModelessItem        (DialogPtr        whichDialog, 
  178.                          short            itemNr)
  179. {
  180. %if lang = MPW%
  181.     #pragma unused (whichDialog, itemNr) 
  182.   
  183. %end if%
  184.     %for each dialog gen handleitem%
  185.  
  186. } /*DoModelessItem*/
  187.  
  188. /* Dispatcher */
  189.